<?php 
if($list)
{
	foreach($list as $book)
	{
?>

<div class="book">
	<div class="left">
		<?php echo $book['title']; ?>
		<div class="addit">字节数:<?php echo $book['length']; ?> - 添加时间:<?php echo date('Y/m/d H:m', $book['addtime']); ?></div>
	</div>
	<div class="right">
		<a href="./?a=user.editbook&id=<?php echo $book['book_id'];?>">编辑</a>
		<a href="./?a=user.delbook&id=<?php echo $book['book_id'];?>">删除</a>
	</div>
</div>

<?php 
	}
}
?>